const state = {
    tags: null, // 标签页
    menuIndex: null, // 菜单选择项
};

const mutations = {
    upTags(state, tags) {
        state.tags = tags;
    },
    upMenuIndex(state, index) {
        state.menuIndex = index;
    },
};

export default {
    namespaced: true, // 启用命名空间
    state,
    mutations,
};
